{include file="pub_header.htm"}

{include file="pub_search.htm"}

<div class="layout_place">
  <div class="place_current">
    <ul>
      <li><a href="{$lang.s._public.global.weburl}" target="_self">{$lang.s._public.global.website}</a></li>
      <li><span>&#187;<span></li>
      <li><a href="{$control_index}?act=cp" target="_self">会员中心</a></li>
    </ul>
  </div>
</div>

<div class="layout_content">
  <div class="content_one_left">
    {include file="pub_cp_menu.htm"}
  </div>
  <div class="content_one_right">
    <div class="box_one_content">
      <div class="title">
        <h2>会员中心 - 基本资料</h2>
      </div>
      <div class="content">
        <form id="cp_profile" name="cp_profile" method="post" action="javascript:void(null);" enctype="multipart/form-data">
        <ul>
          <li>
            <span class="subject">会员名称:</span>
            <span class="multifill">{$member.username}</span>
            <span class="explain">&nbsp;</span>
          </li>
          <li>
            <span class="subject">会员密码:</span>
            <span class="fill"><input type="password" id="password" name="password" value="" class="input" size="42" style="width:230px;" /></span>
            <span class="explain"><span id="password_return" name="password_return"><span class="prompt_primal">请输入密码</span></span></span>
          </li>
          <li>
            <span class="subject">电子信箱:</span>
            <span class="fill"><input type="text" id="email" name="email" value="{$member.email}" class="input" maxlength="60" size="42" style="width:230px;" /></span>
            <span class="explain"><span id="email_return" name="email_return"><span class="prompt_primal">找回密码将用到E-mail,请认真填写</span></span></span>
          </li>
          <li>
            <span class="subject">密码提示问题:</span>
            <span class="fill">
              <select id="question" name="question" class="select" size="1" style="width:80px;">
                <option value=""></option>
                {return_select sort="question"}
                {foreach name=question from=$question item=item}
                  {if $member.question_type == "1" && $member.question == $item.id}
                  <option value="{$item.id}" selected="selected">{$item.name}</option>
                  {else}
                  <option value="{$item.id}">{$item.name}</option>
                  {/if}
                {/foreach}
                {if $member.question_type == "1"}
                <option value="custom">=自定义=</option>
                {else}
                <option value="custom" selected="selected">=自定义=</option>
                {/if}
              </select>
              <span id="question_custom_show" name="question_custom_show">
                <input type="text" id="question_custom" name="question_custom" size="25" style="width:145px;" maxlength="30" value="{if $member.question_type != '1'}{$member.question}{/if}" class="input">
              </span>
            </span>
            <span class="explain"><span id="question_return" name="question_return"><span class="prompt_primal">找回密码等重要操作将用到密码提示问题</span></span></span>
          </li>
          <li>
            <span class="subject">密码提示答案:</span>
            <span class="fill"><input type="text" id="answer" name="answer" size="42" style="width:230px;" maxlength="30" class="input" value="{$member.answer}"  /></span>
            <span class="explain"><span id="answer_return" name="answer_return"><span class="prompt_primal">找回密码等重要操作将用到密码提示答案</span></span></span>
          </li>
          <li>
            <span class="subject">&nbsp;</span>
            <span class="fill">
              <input type="button" id="cp_profile_submit" name="cp_profile_submit" value="确定" class="button"
                onclick="xajax.$('cp_profile_submit').disabled=true;
                          xajax.$('cp_profile_submit').value='请等待...';
                          xajax_cp_profile(xajax.getFormValues('cp_profile'));">
            </span>
            <span class="explain">&nbsp;</span>
          </li>
        </ul>
        </form>
      </div>
    </div>
  </div>
</div>

{include file="pub_footer.htm"}
